package cn.foo.dao;

import cn.foo.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Frank
 * @date 07-04
 */
public interface UserDao {
    User selectUser(Integer id);
    List<User> selectUsers();
    int insertUser(User user);
    int updateUser(User user);
    int deleteUser(int id);
    User login(@Param("userCode")String userCode,@Param("password")String password);
    List<User> selectUserByRoleAndName(@Param("userName") String userName,
                                       @Param("userRole") Integer userRole);
}
